package com.nxcy.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private String name;

    private int age;


    public void print() {
        System.out.println("我是学生,我的名字叫做:" + name + ",我今年" + age + "岁了");
    }
}
